//
//  NSBundle+Localization.h
//  Localization
//
//  Created by han on 2019/1/25.
//  Copyright © 2019 han. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSBundle (Localization)


+ (instancetype)localizationBundle;

// bundle的国际化文字
+ (NSString *)localizedStringForKey:(NSString *)key;
+ (NSString *)localizedStringForKey:(NSString *)key value:(nullable NSString *)value;

// bundle 读取图片
+ (UIImage *)bundleImageWithName:(NSString *)imageName ofType:(NSString *)ext;
// bundle的国际化图片
+ (UIImage *)localizedImageWithName:(NSString *)imageName ofType:(NSString *)ext;

@end

NS_ASSUME_NONNULL_END
